package com.boilermaker.lotterysystem.common.errorcode;

public interface ServiceErrorCodeConstants {

    /**
     * 人员模块错误码
     */
    ErrorCode REGISTER_INFO_IS_EMPTY = new ErrorCode(100, "注册信息为空");

    ErrorCode MAIL_PATTERN_ERROR = new ErrorCode(101, "邮箱格式错误");

    ErrorCode PHONE_NUMBER_PATTERN_ERROR = new ErrorCode(102, "手机号码格式错误");

    ErrorCode IDENTITY_ERROR = new ErrorCode(103, "身份校验错误");

    ErrorCode PASSWORD_IS_EMPTY = new ErrorCode(104, "密码不可为空");

    ErrorCode PASSWORD_PATTERN_ERROR = new ErrorCode(105, "密码格式错误");

    ErrorCode MAIL_USED = new ErrorCode(106, "邮箱已被注册");

    ErrorCode PHONE_NUMBER_USED = new ErrorCode(107, "手机号码已被注册");

    ErrorCode LOGIN_NOT_EXIST = new ErrorCode(108, "登录接口不存在");

    ErrorCode LOGIN_NAME_NOT_EXIST = new ErrorCode(109, "账号密码登录时，错误的登录参数");

    ErrorCode USER_INFO_NOT_EXIST = new ErrorCode(110, "用户信息不存在");

    ErrorCode VERIFICATION_CODE_ERROR = new ErrorCode(111, "验证码校验未通过");

    ErrorCode PASSWORD_ERROR = new ErrorCode(112, "密码校验未通过");

    ErrorCode MAIL_IS_EMPTY = new ErrorCode(113, "邮箱不可为空");

    /**
     * 奖品模块错误码
     */
    ErrorCode PIC_MAKE_DIR_ERROR = new ErrorCode(200, "图片存储路径创建失败");

    ErrorCode PIC_UPLOAD_ERROR = new ErrorCode(201, "图片上传失败");

    /**
     * 活动模块错误码
     */
    ErrorCode CREATE_ACTIVITY_INFO_IS_EMPTY = new ErrorCode(300, "创建活动信息为空");

    ErrorCode ACTIVITY_PRIZE_ERROR = new ErrorCode(301, "不存在的奖品");

    ErrorCode ACTIVITY_USER_ERROR = new ErrorCode(302, "不存在的人员");

    ErrorCode PRIZE_USER_AMOUNT_ERROR = new ErrorCode(303, "奖品或人员数量设置有误");

    ErrorCode ACTIVITY_PRIZE_TIERS_ERROR = new ErrorCode(304, "奖品等级设置有误");

    /**
     * 抽奖模块错误码
     */
    ErrorCode CHECK_DRAW_PRIZE_ERROR = new ErrorCode(400, "中奖信息校验未通过");

    ErrorCode STATUS_CONVERT_ERROR = new ErrorCode(401, "状态转换失败");

    ErrorCode SUBMIT_ASYNC_TASK_ERROR = new ErrorCode(402, "提交任务时发生意外错误");

    ErrorCode EMAIL_NOTIFICATION_ERROR = new ErrorCode(403, "邮件通知任务执行失败");
}

